package com.wondertek.service.sdk.iotdh.dto.res;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author xxx
 * @Date 2024/9/7 10:43
 */
@Data
public class GetAccessoryStatusRes {
    @Schema(name = "id", description = "配件ID", required = true)
    private String id;

    @Schema(name = "percent", description = "电池电量百分比。取值范围为 0 到 100。", required = true)
    private Integer percent;

    @Schema(name = "volt", description = "电池电量。单位：V。浮点类型。", required = true)
    private Double volt;

    @Schema(name = "intensity", description = "无线信号强度级别。取值范围为 0 到 5。", required = true)
    private Integer intensity;

    @Schema(name = "signal", description = "无线信号强度。单位：dbm。取值范围为 60 到 255。", required = true)
    private Integer signal;

    @Schema(name = "tamper", description = "篡改状态。“on”：开启;“off”：关闭。", required = true)
    private String tamper;

    @Schema(name = "doorState", description = "按检测器状态。“on”：开启;“off”：关闭。", required = true)
    private String doorState;

    @Schema(name = "name", description = "Accessory name", required = true)
    private String name;

    @Schema(name = "online", description = "附件状态。1：离线;2：在线。", required = true)
    private Integer online;

    @Schema(name = "alarmState", description = "警报状态。0- 正常;1- 警报。", required = true)
    private Integer alarmState;

    @Schema(name = "version", description = "附件版本", required = true)
    private String version;

    @Schema(name = "ambientTemperature", description = "环境温度。单位：摄氏度。浮点类型。", required = true)
    private Double ambientTemperature;

    @Schema(name = "externalAlarm", description = "外部警报状态。0：正常;1：告警。", required = true)
    private Integer externalAlarm;
}
